﻿<%@ Page Language="C#" AutoEventWireup="true" Theme="Admin" CodeFile="AViewCart.aspx.cs"
    Inherits="Pages_AViewCart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="padding:0px; margin:0px;">
    <form id="form1" runat="server">
            <div class="PageStyle">
                <div class="Popup">
                    <div class="HeaderStyle">
                        <span class="Title1">View cart</span>
                    </div>
                    <div class="FormStyle">
                        <asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic"></asp:CustomValidator>
                        <asp:GridView ID="gvDT" GridLines="None" runat="server" AutoGenerateColumns="False"
                            DataKeyNames="DEID" CellPadding="0" AllowPaging="True" CssClass="GridStyle" AllowSorting="True"
                            DataSourceID="odsCate" PageSize="5">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <input id="ckLeader" type="checkbox" runat="server" class="ckLeader" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <input id="ckMember" type="checkbox" runat="server" class="ckMember" />
                                    </ItemTemplate>
                                    <ItemStyle CssClass="RowCell" HorizontalAlign="Center" />
                                    <HeaderStyle CssClass="HeaderCell" Width="20px" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="ID">
                                    <ItemTemplate>
                                        <%# Eval("DEID")%>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="RowCell" />
                                    <HeaderStyle CssClass="HeaderCell" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Sản phẩm">
                                    <ItemTemplate>
                                        <%# Eval("TEN") %>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="RowCell" />
                                    <HeaderStyle CssClass="HeaderCell" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Số lượng">
                                    <ItemTemplate>
                                        <%# Eval("SoLuong") %>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="RowCell" />
                                    <HeaderStyle CssClass="HeaderCell" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Gi&#225;">
                                    <ItemTemplate>
                                        <%# Eval("GIA") %>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" CssClass="RowCell" />
                                    <HeaderStyle CssClass="HeaderCell" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Th&#224;nh tiền">
                                    <ItemTemplate>
                                        <%# Eval("ThanhTien") %>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Right" CssClass="RowCell" />
                                    <HeaderStyle CssClass="HeaderCell" />
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle CssClass="GridRow" />
                            <AlternatingRowStyle CssClass="GridAltRow" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                        </asp:GridView>
                        <asp:ObjectDataSource ID="odsCate" runat="server" SelectMethod="getCartDetails" TypeName="Jewelry.BussinessLayer.CartBLL"
                            OnObjectCreating="odsCreating" OnSelected="odsSelected">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="cartID" QueryStringField="cid" Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                    </div>
                    <div class="Footer">
                    </div>
                </div>
            </div>
    </form>
</body>
</html>
